/*
 * @Author: your name
 * @Date: 2021-07-13 09:35:42
 * @LastEditTime: 2021-09-24 10:32:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \newvue3\src\router\index.js
 */
import { createRouter, createWebHistory } from 'vue-router' 
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },

  {
    path: '/noRet',
    name: 'noRet',
    component: () => import( '../views/noRet.vue')

  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

 

 


export default router
